<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="ext/ext-all.js"></script>
<!-- <link rel="stylesheet" href="resources/css/desktop_black.css" /> -->
<script type="text/javascript" src="webos/util/constants.js"></script>
<script type="text/javascript" src="webos/util/util.js"></script>
<script type="text/javascript" src="webos/kernel/config/initd.js"></script>
<script type="text/javascript">
	Ext.Loader.setConfig({
		enabled : true,
		paths : {
			'WebOs' : 'webos',
			'WebOs.Kernel' : 'webos/kernel',
			'WebOs.ViewFrame' : 'webos/viewframework',
			'Service' : 'webos/service',
			'WebOs.ex' : 'webos/extension'
		}
	});
	Ext.require([ 'WebOs.Kernel.CoreBase', 'WebOs.Kernel.Core',
			'WebOs.Kernel.model.ServiceBase',
			'WebOs.Kernel.model.UIServiceBase', 'WebOs.Kernel.model.FileModel',
			'WebOs.Kernel.model.UserModel', 'WebOs.Kernel.ServiceFileSystem',
			'WebOs.Kernel.ServiceMgr', 'WebOs.Kernel.ViewFrameMgr',
			'WebOs.Kernel.UserMgr', 'WebOs.Kernel.PermissionMgr' 
			,'WebOs.ViewFrame.desktop.model.ServiceModel']);
	Ext.onReady(function() {
		core = new WebOs.Kernel.Core();
		core.on('ready', function() {
			runApplication();
		});
	});

	runApplication = function(app, config) {
		var appObj = null;
		if (app && typeof app == 'string') {
			appObj = Ext.create(app);
		} else {
			appObj = Ext.create(webosCfg.application);
		}
		if (appObj) {
			core.application = appObj;
			appObj['run'].call(appObj, config);
		}else{
			log('[Error]','init application fail!');
		}
	}
</script>

<script type="text/javascript">
	Ext.onReady(function() {
		window.onscroll = function(e) {
			window.scroll(0, 0);
		};
	});
</script>
</head>
<body style="margin : 0px; font-size:12px !important">

</body>
</html>